<template>
  <div>
    <h4>
      params传参
    </h4>
    <button @click="sendParams">params传参</button>
  </div>
</template>

<script>
export default {
  methods: {
    sendParams() {
      this.$router.push({
        // 如果params传参   name
        // params 刷新会丢失
        // path: "/about",
        name: "about",
        params: {
          id: 888888
        }
      })
    }
  }
}
</script>

<style>

</style>